const Layout = () => import("@/layout/index.vue");
import { useUserStoreHook } from "@/store/modules/user";
const userInfo = useUserStoreHook();
console.log(userInfo.aiFalg);
export default {
  path: "/",
  name: "AICode",
  component: Layout,
  redirect: "/AICode",
  meta: {
    icon: "ep:chrome-filled",
    title: "融智AI",
    rank: 0,
    meta: { requiresAuth: true }
  },
  children: [
    {
      path: userInfo.aiFalg <= 2 && userInfo.aiFalg > 0 ? "/AICode" : "",
      name: "AICodeSub",
      component: () => import("@/views/AICode/index.vue"),
      meta: {
        title: "智能空间",

        showLink: userInfo.aiFalg <= 2 && userInfo.aiFalg > 0 ? true : false
      }
    }
  ]
} as RouteConfigsTable;
